import http from '@/utils/http'
export default {
  queryPermissionByUser() {
    return http.get('/permission/leftMenu')
  },
  queryRouteByUser() {
    return http.get('/permission/selectComponentByUserId')
  },
  // 根据角色id查询当前角色具有的权限以及所有权限
  findPermessionByRoleId(rid) {
    return http.get(`/permission/findPermessionByRoleId/${rid}`)
  },
  submitPermission(rid, ids) {
    return http.post(`/rolePermission/${rid}`, ids)
  },
}
